package com.baijiayun.liveuibase.skin;

import android.util.Log;
import android.view.View;
import android.widget.TextView;

import java.util.HashMap;

public class TextColorHintAttr extends SkinAttr {

	@Override
	public void apply(View view, HashMap<Integer, Integer> themeConfig) {
        Integer color = themeConfig.get(attrValueRefId);
        if (color == null) {
            return;
        }
		if(view instanceof TextView){
			TextView tv = (TextView)view;
			if(RES_TYPE_NAME_ATTR.equals(attrValueTypeName) || RES_TYPE_NAME_COLOR.equals(attrValueTypeName)){
			    tv.setHintTextColor(color);
			}
		} else {
            Log.d("lzdTest", "啥也不是");
        }
	}
}
